require 'test_helper'

class TestItemref < Test::Unit::TestCase

  def setup
    @items = Microdata.get_items('test/data/example_itemref.html')
  end

  def test_top_item_name
    assert_equal ['Amanda'], @items.first.properties['name']
  end

  def test_band_name_and_size
    band = @items.first.properties['band'].first
    assert_equal ['Jazz Band'], band.properties['name']
    assert_equal ['12'], band.properties['size']
  end

end